.class Lcom/waiqin365/lightapp/kaoqin/bi;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/waiqin365/lightapp/view/ec;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kaoqin/bi;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 6

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/bi;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;->k(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;)Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;->f()Ljava/util/HashMap;

    move-result-object v4

    const-string/jumbo v0, "year"

    invoke-interface {v4, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    const-string/jumbo v1, "month"

    invoke-interface {v4, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    const-string/jumbo v2, "day"

    invoke-interface {v4, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    const-string/jumbo v3, "hour"

    invoke-interface {v4, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    const-string/jumbo v5, "minute"

    invoke-interface {v4, v5}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v5, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v5, "-"

    invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, "-"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, " "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, ":"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    :try_start_0
    new-instance v1, Ljava/text/SimpleDateFormat;

    const-string/jumbo v2, "yyyy-MM-dd HH:mm"

    invoke-direct {v1, v2}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, v0}, Ljava/text/SimpleDateFormat;->parse(Ljava/lang/String;)Ljava/util/Date;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/bi;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;->j(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;)Ljava/util/Date;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/Date;->before(Ljava/util/Date;)Z

    move-result v1

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/bi;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;->b(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;Ljava/util/Date;)Ljava/util/Date;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/bi;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;->i(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;)Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/bi;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;->i(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;)Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;

    move-result-object v2

    iget-object v2, v2, Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;->a:Landroid/widget/RelativeLayout;

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;->setStartRlVisibility(Landroid/widget/RelativeLayout;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/bi;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;->i(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;)Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/bi;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;->i(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;)Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;

    move-result-object v2

    iget-object v2, v2, Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;->b:Landroid/widget/RelativeLayout;

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;->setStartRlVisibility(Landroid/widget/RelativeLayout;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/bi;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;->i(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;)Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/bi;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;->i(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;)Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;

    move-result-object v2

    iget-object v2, v2, Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;->c:Landroid/widget/RelativeLayout;

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;->setStartRlVisibility(Landroid/widget/RelativeLayout;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/bi;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;->i(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;)Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/bi;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;->i(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;)Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;

    move-result-object v2

    iget-object v2, v2, Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;->d:Landroid/widget/RelativeLayout;

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;->setStartRlVisibility(Landroid/widget/RelativeLayout;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/bi;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/bi;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;

    const v3, 0x7f0803b1

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;->getString(I)Ljava/lang/String;

    move-result-object v2

    const/16 v3, 0x3e8

    invoke-static {v1, v2, v3}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/bi;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;->b(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;Ljava/util/Date;)Ljava/util/Date;

    :goto_0
    return-void

    :cond_0
    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/bi;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;->b(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;Ljava/util/Date;)Ljava/util/Date;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/bi;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;->i(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;)Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/bi;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;->j(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;)Ljava/util/Date;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/bi;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;->h(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinAskLeaveDetailActy;)Ljava/util/Date;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;->b(Ljava/util/Date;Ljava/util/Date;)V
    :try_end_0
    .catch Ljava/text/ParseException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/text/ParseException;->printStackTrace()V

    goto :goto_0
.end method
